import { defHttp } from '@/utils/http/axios';

enum Api {
  saveApi = '/sys/task/save',
}

// 新增信息
export function addListCollection(params) {
  return defHttp
    .post(
      {
        url: Api.saveApi,
        params,
      },
      {
        isTransformResponse: false,
      },
    )
    .then((res) => {
      return res.data;
    })
    .catch((err) => {
      console.log(err, '新增信息失败');
    });
}
